package com.dingreading.cloud.web.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.mybatisflex.annotation.Column;
import com.mybatisflex.annotation.Id;
import com.mybatisflex.annotation.KeyType;
import com.mybatisflex.annotation.Table;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * 实体类。
 *
 * @author Administrator
 * @since 2024-03-12
 */
@Data
@Table(value = "reading_book")
public class ReadingBook implements Serializable {

    private static final long serialVersionUID = 1L;

    @Id(keyType = KeyType.Auto)
    private Long id;

    @JsonFormat(locale = "zh", timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @Column(onInsertValue = "now()")
    private Date addTime;
    /**
     * 年级，书籍按年级分组
     */
    @ApiModelProperty(value = "年级")
    private Integer grade;

    /**
     * 年级名称
     */
    @ApiModelProperty(value = "年级名称")
    private String gradeName;

    /**
     * isbn
     */
    @ApiModelProperty(value = "isbn")
    private String isbn;

    /**
     * 书名
     */
    @ApiModelProperty(value = "书名")
    private String bookName;

    /**
     * 作者
     */
    @ApiModelProperty(value = "作者")
    private String author;

    /**
     * 出版社
     */
    @ApiModelProperty(value = "出版社")
    private String press;

    /**
     * 价格
     */
    @ApiModelProperty(value = "价格")
    private String price;

    /**
     * 数量限制
     */
    @ApiModelProperty(value = "数量限制")
    private Integer limitNum;

    /**
     * 启用状态
     */
    @ApiModelProperty(value = "启用状态")
    private Integer enabled;

}
